<?php
namespace Admin\Controller;
use Think\Controller;
	class CommonController extends Controller{
		Public function _initialize(){
   		// 初始化的时候检查用户权限
   			if(!isset($_SESSION['state']) || $_SESSION['state']==''){
				$this->redirect('login/login/');
			}else{
			  $value_yyjc = session('yj_user');
			  $this->assign('yj_user',$value_yyjc);
			}
		}
	}
?>
